from os.path import join, exists
from shutil import rmtree
from os import getcwd


def check_userdir_alive():
    path = join(getcwd(), "temp")

    if exists(path):
        rmtree(path)
        return
